package com.drive.mapper;

import com.drive.bean.Subject;
import com.github.pagehelper.Page;

import java.util.List;
import java.util.Map;

/**
 * @author 往
 * 科目管理mapper接口
 */
public interface SubjectMapper {
    void add(Subject subject);
    void setSubjectAndCoach(Map map);

    Page<Subject> findByCondition(String queryString);

    Subject findById(Integer id);

    List<Integer> findSubjectAndCoachIds(Integer id);

    void deleteAssciation(Integer id);

    void update(Subject subject);

    void deleteById(Integer id);

    List<Subject> findAll();

}
